package io.renren.modules.psfinancemanage.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.psfinancemanage.dao.PsDriverStatisticsDao;
import io.renren.modules.psfinancemanage.entity.PsDriverStatisticsEntity;
import io.renren.modules.psfinancemanage.service.PsDriverStatisticsService;



@Service("psDriverStatisticsService")
public class PsDriverStatisticsServiceImpl implements PsDriverStatisticsService {
	@Autowired
	private PsDriverStatisticsDao psDriverStatisticsDao;
	
	@Override
	public PsDriverStatisticsEntity queryObject(Long id){
		return psDriverStatisticsDao.queryObject(id);
	}
	
	@Override
	public List<PsDriverStatisticsEntity> queryList(Map<String, Object> map){
		return psDriverStatisticsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return psDriverStatisticsDao.queryTotal(map);
	}
	
	@Override
	public void save(PsDriverStatisticsEntity psDriverStatistics){
		psDriverStatisticsDao.save(psDriverStatistics);
	}
	
	@Override
	public void update(PsDriverStatisticsEntity psDriverStatistics){
		psDriverStatisticsDao.update(psDriverStatistics);
	}
	
	@Override
	public void delete(Long id){
		psDriverStatisticsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		psDriverStatisticsDao.deleteBatch(ids);
	}

    @Override
	public List<PsDriverStatisticsEntity> detailList(Map<String, Object> map){
		return psDriverStatisticsDao.detailList(map);
	}

	@Override
	public PsDriverStatisticsEntity queryByDriverId(Long id) {
		return psDriverStatisticsDao.queryByDriverId(id);
	}


}
